package com.hyc.seckillsystem.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hyc.seckillsystem.pojo.goods;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface GoodsMapper extends BaseMapper<goods> {
    //根据goodsid 来查询对应的商品
    goods getGoodsByGoodsId(String goodId);

    //联合秒杀表查询秒杀商品信息
    List<goods> selectGoods();

    //查询商品列表
    List<goods> getGoodList();
}
